package com.quality.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import com.quality.business.domain.enums.BodyTextDataEnum;
import lombok.Data;

/**
 * 
 * @TableName body_text_data
 */
@TableName(value ="body_text_data")
@Data
public class BodyTextData extends TableFieldAbstract implements Serializable {
    /**
     *
     */
    @TableField(value = "class_name")
    private String className;

    /**
     * 
     */
    @TableField(value = "sno")
    private Integer sno;


    /**
     * 
     */
    @TableField(value = "sex")
    private String sex;

    /**
     * 
     */
    @TableField(value = "sum_grade")
    private Double sumGrade;

    /**
     * 
     */
    @TableField(value = "standard_grade")
    private Integer standardGrade;

    /**
     * 
     */
    @TableField(value = "height")
    private Double height;

    /**
     * 
     */
    @TableField(value = "weight")
    private Double weight;

    /**
     * 
     */
    @TableField(value = "VC")
    private Integer vc;

    /**
     * 
     */
    @TableField(value = "800M")
    private String eightHundred;

    /**
     * 
     */
    @TableField(value = "1000M")
    private String oneThousand;

    /**
     * 
     */
    @TableField(value = "50M")
    private String fifty;

    /**
     * 
     */
    @TableField(value = "long_jump")
    private Double longJump;

    /**
     * 
     */
    @TableField(value = "sitting_forward_bend")
    private Double sittingForwardBend;

    /**
     * 
     */
    @TableField(value = "sit_up")
    private Integer sitUp;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public Object getValue(String field){
        BodyTextDataEnum bodyTextData = BodyTextDataEnum.valueOf(field);
        switch (bodyTextData){
            case class_name:
                return this.className;
            case sno:
                return this.sno;
            case sex:
                return this.sex;
            case sum_grade:
                return this.sumGrade;
            case standard_grade:
                return this.standardGrade;
            case height:
                return this.height;
            case weight:
                return this.weight;
            case VC:
                return this.vc;
            case eightHundred:
                return this.eightHundred;
            case oneThousand:
                return this.oneThousand;
            case fifty:
                return this.fifty;
            case long_jump:
                return this.longJump;
            case sitting_forward_bend:
                return this.sittingForwardBend;
            case sit_up:
                return this.sitUp;
            default:
                return "";
        }
    }
}